#include <sys/types.h>
#include <sys/socket.h>
#include <unistd.h>
#include <iostream>
#include <netinet/in.h>
#include <memory.h>
#include <arpa/inet.h>


int main()
{
    int sock = socket(AF_INET, SOCK_DGRAM, 0);

    struct sockaddr_in server_addr;
    memset(&server_addr, 0, sizeof server_addr);

    server_addr.sin_addr.s_addr = inet_addr("0.0.0.0");
    server_addr.sin_family = AF_INET;
    server_addr.sin_port = htons(8080);
    
    char buffer[1024] = "hello";
    sendto(sock, buffer, sizeof(buffer) - 1, 0, (sockaddr*)&server_addr, sizeof server_addr);


    return 0;
}